package com.example.landmanagement.util;

/**
 * className ReturnBeanSim
 * 简单 simple 返回类 不 包含data
 * @author Java DaKun
 * @date 2021/7/14
 * @version:1.0
 * @since:jdk:1.8
 */
public class ReturnBeanSim {

    private Integer code;
    private String msg;
    private CodeEnum codeEnum;


    public ReturnBeanSim(CodeEnum codeEnum) {
        this.code = codeEnum.getCode();
        this.msg = codeEnum.getMsg();
        this.codeEnum = codeEnum;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public CodeEnum getCodeEnum() {
        return codeEnum;
    }

    public void setCodeEnum(CodeEnum codeEnum) {
        this.codeEnum = codeEnum;
    }
}
